<template>
  <div>
      <mc-api-choose db-url="/public/db.json"
      table-url="/public/tableinfo.json"
      api-url="/public/apis.json"
      :data="form"
      :project-uuid="projectUuid"
      @change="change"
      ></mc-api-choose>
      <el-button @click="print">打印</el-button>
  </div>
</template>

<script>
import McApiChoose from './components/McApiChoose'
export default {
    data(){
      return {
          projectUuid:"123",
          form:{
              x:"colorPicker",
              y:"images",
              apiParam:{
                  method:"post",
                  url:"magical_lowcode/openapi/crud/hdy/list",
                  params:[],
                  filed:""
              }
          }
		  }
    },
    components:{
      McApiChoose,
    },
    methods:{
        print(){
            console.log(this.form)
        },
        change(val){
            console.log("数据配置变化了")
            console.log(val);
        }
    }
}
</script>

<style>

</style>
